//
//  FJChatViewController.swift
//  FruitJuice
//
//  Created by Rui on 2023/12/17.
//

import UIKit

class FJChatViewController: FJBaseViewController, SAAnimationProtocol {

    private var navView = FJChatTopView()
    
    override func viewDidLoad() {
        super.viewDidLoad()

        navigation.bar.isHidden = true
        
        view.subviews{
            navView
        }
        
        navView.leading(0).trailing(0).top(.statusHeight).height(44)
        
        navView.backClosure = {
            self.navigationController?.popViewController(animated: true)
        }
        navView.moreClosure = {
            self.saAnimate.animation(show: FJReportView())
        }
        navView.videoClosure = {
//            UIImageView.downloadWith(urlStr: self.model?.headImage ?? "") { img in
//                let vc = LearningVideoViewController()
//                vc.peerStr = self.model?.id ?? ""
//                vc.isRecept = false
//                vc.headImage = img
//                vc.nameStr = self.model?.name
////                self.navigationController?.pushViewController(vc, animated: true)
//                self.present(vc, animated: false)
//            }
        }
    }

}
